import store from '@/store'
// 判断按钮权限
export default {
  inserted: function(el, binding) {
    const flag = store.getters.userInfo.roles.points.includes(binding.value)
    console.log(flag)
    // el.style.display = flag || 'none'
    if (!flag) {
      el.setAttribute('disabled', 'disabled')
      el.style.opacity = 0.5
      el.style.cursor = 'no-drop'
      el.style.color = '#808080'
    }
  }
}
